package com.serviceprovider.business.module.order.services.impl;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.order.model.OrderStatus;
import com.serviceprovider.business.module.order.services.dao.interfaces.IOrderStatusDao;
import com.serviceprovider.business.module.order.services.interfaces.IOrderStatusService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//~--- JDK imports ------------------------------------------------------------

import java.util.List;

@Service("orderStatusService")
public class OrderStatusServiceImpl implements IOrderStatusService {
    @Autowired
    IOrderStatusDao orderStatusDao;

    @Override
    public List<OrderStatus> findAll() {
        return orderStatusDao.findAll();
    }

    @Override
    public void remove(Integer id) {
        orderStatusDao.remove(id);
    }

    @Override
    public void update(OrderStatus status) {
        orderStatusDao.update(status);
    }

    @Override
    public void create(OrderStatus status) {
        orderStatusDao.create(status);
    }

    @Override
    public OrderStatus get(Integer id) {
        return orderStatusDao.get(id);
    }
}



